package com.example.demo.service;

import com.example.demo.pojo.*;
import jakarta.servlet.http.HttpSession;

import java.util.List;

public interface UserService {
    List<User> getUser(Integer id);

    void register(User user);

    User authenticate(String username, String password);

    List<Department> getAllDepartment();

    List<Doctor> getAllDoctor();

    List<Doctor> getDoctorsByDepartmentId(Long departmentId);

    List<Schedule> getScheduleByDoctorId(Long doctorId);

    void addAppointment(Schedule schedule, HttpSession session);

    void updateAvailableNumber(Schedule schedule);

    Waiting addWaitingAppointment(Appointment appointment, Schedule schedule);

    List<Waiting> getWaiting();

    List<AppointmentInfo> getAppointmentDetails(HttpSession  session);

    List<WaitingDetail> getAppointmentWaiting(AppointmentInfo appointmentInfo);
}

